package com.tengju.settlement.domain.model.account;

public interface AccountRepository {

    Account find(UserIdCode userIdCode, AccountType accountType);

    Account findByAccountId(AccountId accountId);

    void save(Account account);

    Account findOrSave(UserIdCode userIdCode, AccountType accountType);

    void updateBalance(Account account,Integer oldVersion);
}
